JSON
Synchronization can also be carried out using a file that is a JSON compilation database - refer to http://clang.llvm.org/docs/JSONCompilationDatabase.html for further details on this format.
A typical JSON example might be:
where compile_commands.json is:
[
{
"directory": "/home/steve/Temp",
"command": "g++ -std=c++11 -I . enum.cpp",
"file": "/home/steve/Temp/enum.cpp"
}
]
Support has also been added for the arguments form of the command (which is produced by the Clang compiler), for example:
[
{
"directory": "/home/steve/Temp",
"arguments": ["g++", "-std=c++11", "-I", "diff.h", "-D", "Wibble"], "file": "File C.c"
}
]
This command replaces
qacli admin ‑‑parse‑json‑db
, which is deprecated. Refer to Deprecated Commands.